﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Data;
using System.Data.SqlClient;

namespace WebApp3
{
    public partial class Common1 : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.lblInfo.Text = System.DateTime.Now.ToString("yyyy年MM月dd日dddd HH时mm分ss秒");
            string chuandiname;
            string chuandisex;
            string chuandiimageurl;
            string chuandiqqemail;

            chuandiname = Session["chuandiname"].ToString();
            chuandisex = Session["chuandisex"].ToString();
            chuandiimageurl = Session["chuandiimageurl"].ToString();
            chuandiqqemail = Session["chuandiqqemail"].ToString();

            this.lblSex.Text = chuandisex;
            this.Image1.ImageUrl = chuandiimageurl;
            this.lblEmail.Text = chuandiqqemail;
            this.lblUserName.Text = chuandiname;


            lblOnline.Text += Application["online"];
            lblSession.Text += Session.SessionID;
            lblClick.Text += Application["click"];
        }
       
        protected void Timer2_Tick(object sender, EventArgs e)
        {

        }

        protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
        {
            string strCn = "server=pc.hstc.cn;database=dhd2014112111;uid=2014112111;pwd=19950511";
            SqlConnection cn = new SqlConnection(strCn);
            Response.Redirect("frmAdminSy.aspx");
        }

        protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
        {
            string strCn = "server=pc.hstc.cn;database=dhd2014112111;uid=2014112111;pwd=19950511";
            SqlConnection cn = new SqlConnection(strCn);
            Response.Redirect("frmAdminXx.aspx");
        }

        protected void ImageButton3_Click(object sender, ImageClickEventArgs e)
        {
            string strCn = "server=pc.hstc.cn;database=dhd2014112111;uid=2014112111;pwd=19950511";
            SqlConnection cn = new SqlConnection(strCn);
            Response.Redirect("default.aspx");
        }
    }
}